package com.rpc.example.spring.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


/**
 * @author Elvis
 * @version 1.0, 2022/11/17
 */
@ConfigurationProperties(prefix = "customer.rpc")
public class ServiceProviderConfiguration {

    private String applicationName;
    private String hostAddress;
    private int servicePort;

    private String registerAddress;

    private byte registryType;

    public String getHostAddress() {
        return hostAddress;
    }

    public void setHostAddress(String hostAddress) {
        this.hostAddress = hostAddress;
    }

    public int getServicePort() {
        return servicePort;
    }

    public void setServicePort(int servicePort) {
        this.servicePort = servicePort;
    }

    public String getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(String registerAddress) {
        this.registerAddress = registerAddress;
    }

    public byte getRegistryType() {
        return registryType;
    }

    public void setRegistryType(byte registryType) {
        this.registryType = registryType;
    }

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }
}
